<template>
	<view class="universal-detail">
		<view class="universal-detail-top">
			<view class="universal-detail-top-time">
				<text class="universal-detail-top-title">审核</text>
				{{ model.auditTime }}
			</view>
			<view class="universal-detail-top-username">审核人：{{ model.auditUserName }}</view>
		</view>

		<view class="universal-detail-cont">
			<view class="universal-detail-item">
				<view class="universal-detail-item-title">审核结果：</view>
				<van-text-ellipsis class="universal-detail-item-cont"
					:content="model.auditResult === 1 ? '不通过' : '通过'" />
			</view>
			<view class="universal-detail-item">
				<view class="universal-detail-item-title">审核理由：</view>
				<view class="universal-detail-item-cont">{{ model.auditReason || '-' }}</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	const model = defineModel();
</script>

<style lang="scss" scoped>
	@import '@/assets/universal-detail.scss';

	.detail {
		.universal-detail {
			.universal-detail-item {
				width: 100%;
			}
		}
	}
</style>